import { createApp, VNodeProps } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementPlus from "element-plus";
import "element-plus/lib/theme-chalk/index.css";
import locale from "element-plus/lib/locale/lang/zh-cn";
import "./utils/date-util.js"
import 'default-passive-events'

const app = createApp(App);
app.use(ElementPlus, { locale });
app.use(store);
app.use(router);
app.mount("#app");



app.directive("max-height", {
  // 当被绑定的元素挂载到 DOM 中时, 计算表格高度自适应
  updated(el, binding) {
    console.log("xxx");
    el.style.height = document.documentElement.clientHeight - 270 + "px";
  },
});

// const appbus = createApp({}); //正常的创建Vue实例
// appbus.config.globalProperties.$bus = mitt();
